package com.tem.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tem.system.entity.SysPermissionEntity;
import com.tem.system.vo.SysPermissionRequest;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 腾木科技 Created by 2022/2/17 15:51
 */
public interface SysPermissionMapper extends BaseMapper<SysPermissionEntity> {

    List<SysPermissionEntity> findOperatorMenuByUserId(@Param("userId") String userId,@Param("flag") Boolean flag);

    List<SysPermissionEntity> listMenu(@Param("request") SysPermissionRequest request);

    Integer maxSort();

    void deleteBath(@Param("ids") List<String> ids);

    Integer countRoleMenuByMenuId(String id);
}
